/**
*
*	\file rtc.h
*	\author Manish Shakya 
*	\brief
*	\date  Tuesday,October 27,2009
*	\version 1.0
*
*
*/
#ifdef __RTC__
typedef struct 
{
       uint16_t year;
       uint8_t month;
       uint8_t dom;
    
}date_s;

typedef struct
{
    uint8_t hr;
    uint8_t min;
    uint8_t sec;
}time_s;

void rtc_init(void);

void rtc_get_time(time_s * ptrtme);

void rtc_get_date(date_s * ptrdte);

void rtc_set_time(uint8_t hr,uint8_t min,uint8_t sec);

void rtc_set_date(uint16_t year,uint8_t month,uint8_t dom);
uint32_t rtc_get_packed_date_time(void);

#endif
